package com.edais.dao;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.edais.domain.Share;
import com.edais.persistence.SystemSettingMapper;

@Repository(value="systemSettingDao")

public class SystemSettingDao {
	
	@Autowired
	private SystemSettingMapper systemSettingMapper;
	
	/**
	 * 根据名称查询报错信息
	 * @param name
	 * @return
	 */
	public Share getSystemSetting() throws Exception{
		return this.systemSettingMapper.getSystemSetting();
	}
	/**
	 * 根据name获取value
	 * @return
	 * @throws Exception
	 */
	public String getSystemSettingValueByName(String name) throws Exception{
		return this.systemSettingMapper.getSystemSettingValueByName(name);
	}
	
	/**
	 * 根据name获取value
	 * @return
	 * @throws Exception
	 */
	public Map<String,String> getSystemSettingValue(String name) throws Exception{
		return this.systemSettingMapper.getSystemSettingValue(name);
	}
}
